﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Data;

namespace hostal
{
    public partial class VerProducto : Form
    {
        public VerProducto(string p)
        {
            InitializeComponent();
            productoDataAccess hDal = new productoDataAccess();
            DataTable temp = hDal.buscarDatosP(p);
            this.tbnom.Text = temp.Rows[0]["nombre"].ToString();
            this.tbprecio.Text = temp.Rows[0]["precio"].ToString();
            this.tbdescripcion.Text = temp.Rows[0]["descripcion"].ToString();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
